package com.hps.order.service.controller;

import com.hps.user.service.api.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author heps
 * @date 2019/10/9 21:55
 */
@RestController
public class OrderController {

    @Reference
    private UserService userService;

    @GetMapping("/hello")
    public String hello(@RequestParam(name = "name") String name) {
        return userService.sayHello(name);
    }
}
